// 注册
var myFoot = {
    template: '\
    <div class="footer" >\
      <ul class="footer-cont">\
        <li  @click="mainMenu(0)" >\
          <div class="foot-up"><i class="fa fa-briefcase"></i></div>\
          <div class="foot-down">宝贝分类</div>\
        </li>\
        <li @click="mainMenu(1)">\
          <div class="foot-up"><i class="fa fa-shopping-cart"></i></div>\
          <div class="foot-down">全部宝贝</div>\
        </li>\
        <li @click="mainMenu(2)">\
          <div class="foot-up"><i class="fa fa-map-marker"></i></div>\
          <div class="foot-down">镇店好茶</div>\
        </li>\
        <li @click="mainMenu(3)">\
          <div class="foot-up"><i  class="fa fa-bar-chart"></i></div>\
          <div class="foot-down">新品上市</div>\
        </li>\
      </ul>\
    </div>',
    // ,
    // props: ['menu'],
    // data: function() {
       
    // },
    methods: {
        mainMenu: function(i) {
            $(".footer ul li").removeClass("active");
            $(".footer ul li:nth(" + i + ")").addClass("active");
            this.$emit('choose', i);
        }
    },
    watch: {
        // 'menu': {
        //     handler: 'watchMenu'
        // }
    }
}
